package com.jcn.seckill.redis;

public class MiaoshaUserKey extends BasePrefix{
	//TOKEN有效期
	public static final int TOKEN_EXPIRE = 3600*24 * 2;
	private MiaoshaUserKey(int expireSeconds, String prefix) {
		super(expireSeconds, prefix);
	}
	public static MiaoshaUserKey token = new MiaoshaUserKey(TOKEN_EXPIRE, "tk");
	//对象缓存希望是永久有效的，所以不设置有效期
	public static MiaoshaUserKey getById = new MiaoshaUserKey(0, "id");
}
